#include "parsehtml/Exec.h"
#include "parsehtml/ForAnalytic.h"


ForAnalytic::ForAnalytic(void)
{

}

ForAnalytic::~ForAnalytic(void)
{

}

void ForAnalytic::Show(string &str,string &strOut, int flag)
{
	string str2,num1,num2,num3,str3;
	int num_1=0,num_2=0,num_3=0;

	int for1 = str.find(" ");
	str2 = str.substr(3,for1-3);
	int for2=  str.find(" ",for1+1);
	int for3 = str.find("=",for1+1);
	num1 = str.substr(for3+1,for2-for3);
	int for4 = str.find(" ",for2+1);
	int for5 = str.find("=",for2+1);
	num2 = str.substr(for5+1,for4-for5);
	int  for6 = str.find(">",for4+1);
	int  for7  = str.find("=",for4+1);
	num3 = str.substr(for7+1,for6-for7-1);
	int for8 = str.find("<",for6+1);

	num_1 =atoi(num1.c_str());
	num_2 =atoi(num2.c_str());
	num_3 =atoi(num3.c_str());

// 	for (int i=for6+1;i<for8;i++) {
// 		if(str[i]!=' ') {
// 			char temp[10] = "";
// 			sprintf(temp,"%c",str[i]);
// 			str3.append(temp);
// 		}
// 	}
	for( int i=num_1;i<num_2;i=i+num_3)
	{

	}

}
